package com.ayu.wxgzh.ayucyy.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 图片消息
 */
@XStreamAlias("xml")
@Data
@NoArgsConstructor
public class ImageMessage extends BaseMessage {

    // 通过素材管理中的接口上传多媒体文件，得到的id
    @XStreamAlias("MediaId")
    private String mediaId;

    public ImageMessage(Map<String, String> requestMap, String mediaId) {
        super(requestMap);
        this.setMsgType("image");
        this.mediaId = mediaId;
    }
}

